home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12107 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  693 b 

  1. Path: news.cs.indiana.edu!djacobso@cs.indiana.edu
  2. From: "dan j" <djacobso@cs.indiana.edu>
  3. Newsgroups: comp.lang.c
  4. Subject: microsecond delay
  5. Date: Thu, 28 Mar 1996 15:56:46 -0500 (EST)
  6. Organization: Computer Science, Indiana University
  7. Message-ID: <14546@828046609>
  8. NNTP-Posting-Host: news.cs.indiana.edu
  9.  
  10. We are writing a program that reads bar codes swiped on a card reader.
  11.  
  12. The problem is that when we write to the device on the serial line,
  13. the following read is too fast for the device.  We have to delay the
  14. read briefly.  We can use "sleep" to delay a second, but that's too
  15. long.
  16.  
  17. Is there any way effect delays in miliseconds without resorting to
  18. loops?
  19.  
  20. Many thanks,
  21.  
  22. dan jacobson
  23.  
  24.